package com.kunyi.web.service.file.core.transform;

import com.kunyi.web.service.file.entity.domain.ExportTemplate;
import com.kunyi.web.service.file.entity.req.TemplateSaveReq;

/**
 * @ClassName ExportTemplateTransform
 * @Description ExportTemplate类转换
 * @Author pengjunjun
 * @Date 2024/03/04
 * @Version 1.0
 **/
public class ExportTemplateTransform {
    public static ExportTemplate saveReq2Template(TemplateSaveReq req) {
        return new ExportTemplate()
                .setCode(req.getCode())
                .setDataUrl(req.getDataUrl())
                .setNotifyUrl(req.getNotifyUrl())
                .setFilePath(req.getFilePath())
                .setRemark(req.getRemark());
    }
}
